package com.szrt.day20170413.ch03;

public class Person {
	
	/**
	 * 姓名
	 */
	private String name;
	
	/**
	 * 年龄
	 */
	private int age;
	
	/**
	 * 性别
	 */
	private char sex;
	
	

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public char getSex() {
		return sex;
	}

	public void setSex(char sex) {
		this.sex = sex;
	}
	
	protected void changge(){
		System.out.println("中华人民共和国国歌...");
	}
	
	

	@Override
	public String toString() {
		return "{name=" + name + ", age=" + age + ", sex=" + sex + "}";
	}
	
	
	
	
	
	

}
